.box {
  background-color: #262626;
  padding: 20px;
  display: flex;
}
.leftlayout {
  flex: 0 0 250px;
  height: 500px;
  padding: 20px;
  position: relative;
  color: #fff;
  margin-left: 10px;
}
.leftlayout > * {
  position: relative;
  z-index: 3;
}
.leftlayout::before {
  --offset: 5px;
  content: "";
  position: absolute;
  top: calc(var(--offset) * -1);
  left: calc(var(--offset) * -1);
  width: calc(10px + 100%);
  height: calc(10px + 100%);
  background: linear-gradient(130deg, #ff7a18 0%, #af002d 40%, #319197 70%);
  border-radius: 12px;
  z-index: 1;
}
.leftlayout::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: #000;
  border-radius: 8px;
}
.rightlayout {
  display: flex;
  align-items: center;
  padding: 3rem 0 3rem 2rem;
  overflow-x: scroll;
  & .card:not(:first-child) {
    margin-left: -130px;
  }
  .card:hover {
    transform: translateY(-1rem) rotate(4deg);
  }
  .card:hover ~ .card {
    transform: translateX(130px);
  }
}
.rightlayout .card {
  min-width: 300px;
  min-height: 300px;
  width: 300px;
  height: 300px;
  border-radius: 16px;
  transition: 0.2s;
  clear: both;
  background: linear-gradient(85deg, #434343, #262626);
  box-shadow: -2rem 0 2rem -2rem #000;
}

.rightlayout::-webkit-scrollbar {
   height: 8px;
  background-color: #201c29;
}
.rightlayout::-webkit-scrollbar-thumb {
  background-color: #666666;
  border-radius: 10px;
}
